package com.wxl.common.room.dao

import androidx.room.*
import com.wxl.common.room.entity.LeiGuanBlastEntity

@Dao
interface BlastDao {

    @Transaction
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertLeiGuan(vararg mLeiGuanEntity: LeiGuanBlastEntity)

    @Transaction
    @Update
    fun updateLeiGuan(vararg mLeiGuanEntity: LeiGuanBlastEntity)

    @Transaction
    @Delete
    fun deleteLeiGuan(vararg mLeiGuanEntity: LeiGuanBlastEntity)

    @Transaction
    @Query("select * from blast where blastId in (:blastId)")
    fun queryLeiGuan(blastId:String):List<LeiGuanBlastEntity>
}